<?php
require_once(dirname(__FILE__).'/simpletest/autorun.php');
require_once('../path.php');
require_once('../file.php');

class TestOfFile extends UnitTestCase {
	function testFileInstance() {
		$file = new Ab_File(dirname(__FILE__).'/testFolder');
		$this->assertTrue(is_a($file, 'Ab_File'),'Routine Test:  Check instance type');
	}
	
	/*function testFileTree(){
		$file = new File(dirname(__FILE__).'/testFolder');
		
		$tree=$file->getChildren();
		
		$expected_tree=array(0 => '06-oops.jpg',
		1 => 'a',
		2 => 'a.txt',
		3 => 'api_integration1.png',
		4 => 'd',
		5 => 'header-shooting.jpg');

		$this->assertEqual($result=$tree,$expected=$expected_tree);
	}*/
	
	function testRename(){
		/*$file = new File(dirname(__FILE__).'/testFolder/06-oops.jpg');
		
		$result=$file->rename(dirname(__FILE__).'/testFolder/06-oops.jpg');
		
		$this->assertEqual($result=$result,true);
		*/
	}
	

}
?>

